home *** CD-ROM | disk | FTP | other *** search
/ Mac-Source 1994 July / Mac-Source_July_1994.iso / C and C++ / Text⁄Files / Suntar 1.3.2 / system7.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-08-07  |  1.4 KB  |  55 lines  |  [TEXT/KAHL]

  1. /* this file is needed only if you want to compile suntar 1.1 with
  2. A pre-System 7.0 version of Think-C: since that's what we have done,
  3. it must be skipped to compile suntar on a newer release
  4. (Think-C 5.0): these damned compilers are stupid, they
  5. don't accept that a type or function be declared twice, even if
  6. the two declarations are absolutely identical. And obviously
  7. these declarations do exist in new header files.
  8. */
  9.  
  10. #ifndef THINK_C_5
  11.  
  12.  
  13. #ifndef    _MacTypes_
  14. #include "MacTypes.h"
  15. #endif
  16.  
  17. typedef unsigned char Str63[64];
  18. typedef short ScriptCode;
  19.  
  20. typedef struct FSSpec {
  21.     short    vRefNum;
  22.     long    parID;
  23.     Str63    name;
  24. } FSSpec;
  25. typedef FSSpec *FSSpecPtr;
  26.  
  27. struct StandardFileReply {
  28.     Boolean sfGood;
  29.     Boolean sfReplacing;
  30.     OSType sfType;
  31.     FSSpec sfFile;
  32.     ScriptCode sfScript;
  33.     short sfFlags;
  34.     Boolean sfIsFolder;
  35.     Boolean sfIsVolume;
  36.     long sfReserved1;
  37.     short sfReserved2;
  38. };
  39. typedef struct StandardFileReply StandardFileReply;
  40.  
  41.  
  42. pascal void CustomPutFile(Str255,Str255,StandardFileReply *,short,Point,ProcPtr,ProcPtr,short *,ProcPtr,void *)
  43.     = {0x3F3C,0x0007,0xA9EA}; 
  44.  
  45.  
  46. pascal OSErr FSMakeFSSpec( short, long, StringPtr,FSSpecPtr) = {0x303C,0x0001,0xAA52};
  47.  
  48. /* pascal OSErr HMSetDialogResID(short) = {0x303C,0x010C,0xA830}; */
  49.  
  50. pascal OSErr Gestalt(OSType,long *) = {0xA1AD};
  51.  
  52. #endif
  53.  
  54. pascal OSErr ResolveAliasFile(FSSpec*,Boolean,Boolean *,Boolean    *) = { 0x700C,0xA823};
  55.